<template>
  <div>
    <p>组件插槽</p>
    <div>
      <h2 class="title">{{ title }}</h2>
      <div>
        <slot name="left"></slot>|
        <slot name="right"></slot>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "component4",
  props: ["title"]
};
</script>
<style lang="stylus" scoped></style>
